/************************************************************************
 * <br>
 * <ul>
 * <li>版权所有：唐山弘川科技有限公司 2009－2020</li>
 * <li>创建日期：2009-8-12</li>
 * <li>初始作者：刘川</li>
 * </ul>
 * <ul>
 * <b>修订历史</b>
 * <li>1、</li>
 * </ul>
 ***********************************************************************/
package com.hy.erp.inventory.pojo ;

import javax.persistence.Column ;
import javax.persistence.Entity ;
import javax.persistence.FetchType ;
import javax.persistence.ManyToOne ;
import javax.persistence.PrimaryKeyJoinColumn ;
import javax.persistence.Table ;

import org.hibernate.annotations.Index ;
//import org.jboss.seam.annotations.Name ;

import com.hy.erp.inventory.dao.interfaces.ICountryDao;
import com.hy.erp.inventory.pojo.interfaces.ICountry;
import com.hy.mydesktop.shared.persistence.domain.gxt.MyBaseModel;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.api.annotation.DaoA;
//import com.hy.erp.inventory.vsoft.libra.enterprise.framework.persistence.entity.AbstractPersistentEntity;
/**
 * 
 * <ul>
 * <li>开发作者：李冰</li>
 * <li>设计日期：2010-10-6；时间：上午10:29:08</li>
 * <li>类型名称：Country</li>
 * <li>设计目的：国家</li>
 * </ul>
 * <ul>
 * <b>修订编号：</b>
 * <li>修订日期：</li>
 * <li>修订作者：</li>
 * <li>修订原因：</li>
 * <li>修订内容：</li>
 * </ul>
 */
/*@Name("country")
@ Entity ( name = "country" )
@Table(name="country") 
@ DaoA ( ICountryDao.class )*/
//public class Country extends AbstractPersistentEntity implements ICountry
public class Country extends MyBaseModel //implements IPositonType
{
	private static final long	serialVersionUID	=
	                                                  1188226772899263160L ;
	
	
	/**
	 * 构造函数
	 */
	public Country ( )
	{
		super ( ) ;
	}

	@ Column ( name = "abbreviation" , length = 50 )
	@ Index ( name = "abbreviationIndex" )
	public String getAbbreviation ( )
	{

		return this.get(ICountry.ABBREVIATION) ;
	}

	@ Column ( name = "abbreviation" , length = 50 )
	@ Index ( name = "abbreviationIndex" )
	public void setAbbreviation (
									String abbreviation )
	{
		super.set (ICountry.ABBREVIATION , abbreviation );
	}
	@ Column ( name = "description" , length = 50 )
	@ Index ( name = "descriptionIndex" )

	public String getDescription ( )
	{
		return this.get(ICountry.DESCRIPTION) ;
	}


	public void setDescription (
									String description )
	{
		super.set (ICountry.DESCRIPTION , description );
	}

	@ Column ( name = "isoCode" , length = 50 )
	@ Index ( name = "isoCode" )
	public String getIsoCode ( )
	{
		return this.get(ICountry.ISCODE) ;
	}


	public void setIsoCode (
								String isoCode )
	{
		super.set (ICountry.ISCODE , isoCode );
	}

	@ Column ( name = "name" , length = 50 )
	@ Index ( name = "name" )
	public String getName ( )
	{
		return this.get(ICountry.NAME) ;
	}


	public void setName (
							String name )
	{
		super.set (ICountry.NAME , name );
	}
	@ Column ( name = "namedCode" , length = 50 )
	@ Index ( name = "namedCodeIndex" )

	public String getNamedCode ( )
	{
		return this.get(ICountry.NAMECODE) ;
	}


	public void setNamedCode (
								String namedCode )
	{
		super.set (ICountry.NAMECODE , namedCode );
	}
@ManyToOne(targetEntity=LocationType.class,fetch=FetchType.LAZY)
@PrimaryKeyJoinColumn
public LocationType getLocationType ( )
	{
	return this.get(ICountry.LOCATIONTYPE) ;
	}

	public void setLocationType (
									LocationType locationType )
	{
		super.set (ICountry.LOCATIONTYPE , locationType );
	}



   


	

}
